package com.chenxin.transaction.dao;

import com.chenxin.transaction.entity.AccountInfo;
import org.apache.ibatis.annotations.*;

/**
 * @Description:
 * @title: AccountInfoDao
 * @Author Star_Chen
 * @Date: 2022/5/31 11:38
 * @Version 1.0
 */
@Mapper
public interface ZhangsanAccountInfoDao {

    int updateAccountBalance(@Param("accountNo") String accountNo, @Param("amount") Double amount);

    AccountInfo findByIdAccountNo(@Param("accountNo") String accountNo);

    int isExistTx(String txNo);

    int addTx(String txNo);
}
